/*
private ["_averagex","_averagey","_averagepos","_divide","_trigger","_num"];
if (!isServer) exitWith {};

sleep 1;

while {true} do {
    
    _rad=20000;
    _cnps = getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition");
    _hills = nearestLocations [_cnps, ["FlatArea"], _rad];
    _hillcount = count _hills;
    _hillnum = floor (random _hillcount);
    _hill = _hills select _hillnum;
    _hilpos = getpos _hill;
    createPos = getpos _hill;
    
    
    if (cvg_debug == 2) then {
        _marker=createMarker [format ["mar%1",random 100000],createPos];
        _marker setMarkerType "Dot";
        _marker setMarkerColor "Colorblack";
        _marker setMarkerSize [2,2];	
    };
    
    
    _trigger=createTrigger ["EmptyDetector",createPos];
    _trigger setTriggerArea [10,10,0,false];
    [_trigger,20,CLY_hordetrigger,"normal"] execVM "zombie_scripts\cly_z_horde.sqf";
    
    
    _num = (floor (random 7))+10;
    sleep (_num * 60);
};
*/

